ArcPad Applet File Schema
COMPORT Element
See Also  Send comments on this topic.
ArcPad Applet File Schema : COMPORT Element

Glossary Item Box

Description

Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.

Diagram

COMPORT Element

Overview

COMPORT
Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.
baud optional Restriction of xs:int
Baud rate for communication.
cthandshake optional Restriction of xs:string
Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.
databits optional Restriction of xs:int
Number of data bits used to represent characters.
dsrhandshake optional Restriction of xs:string
Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.
dtrcontrol optional Restriction of xs:string
DTR (data-terminal-ready) flow control.
infrared optional Restriction of xs:string
Flag to determine if the serial port is an infrared port.
parity optional Restriction of xs:string
Parity (error-checking).
port optional Restriction of xs:int
COM port to use.
rtscontrol optional Restriction of xs:string
RTS (ready-to-send) flow control.
stopbits optional Restriction of xs:int
Number of stop bits used to mark the end of a unit of transmission.

Attributes

NameTypeUseDefaultFixedDescription
baudRestriction of xs:intoptional4800 Baud rate for communication.
cthandshakeRestriction of xs:stringoptionalfalse Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.
databitsRestriction of xs:intoptional8 Number of data bits used to represent characters.
dsrhandshakeRestriction of xs:stringoptionalfalse Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.
dtrcontrolRestriction of xs:stringoptionalenable DTR (data-terminal-ready) flow control.
infraredRestriction of xs:stringoptionalfalse Flag to determine if the serial port is an infrared port.
parityRestriction of xs:stringoptionalN Parity (error-checking).
portRestriction of xs:intoptional1 COM port to use.
rtscontrolRestriction of xs:stringoptionalenable RTS (ready-to-send) flow control.
stopbitsRestriction of xs:intoptional1 Number of stop bits used to mark the end of a unit of transmission.

Examples

Source

<xs:element name="COMPORT" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define serial port settings for the AUX or GPS port in ArcPadPrefs.apx.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="baud" default="4800">
      <xs:annotation>
        <xs:documentation>Baud rate for communication.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="1200" />
          <xs:enumeration value="2400" />
          <xs:enumeration value="4800" />
          <xs:enumeration value="9600" />
          <xs:enumeration value="14400" />
          <xs:enumeration value="19200" />
          <xs:enumeration value="38400" />
          <xs:enumeration value="56000" />
          <xs:enumeration value="57600" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="cthandshake" default="false">
      <xs:annotation>
        <xs:documentation>Flag to determine if the CTS (clear-to-send) signal is monitored for output flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="databits" default="8">
      <xs:annotation>
        <xs:documentation>Number of data bits used to represent characters.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="7" />
          <xs:enumeration value="8" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dsrhandshake" default="false">
      <xs:annotation>
        <xs:documentation>Flag to determine if the DSR (data-set-ready) signal is monitored for output flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="dtrcontrol" default="enable">
      <xs:annotation>
        <xs:documentation>DTR (data-terminal-ready) flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="enable" />
          <xs:enumeration value="disable" />
          <xs:enumeration value="handshake" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="infrared" default="false">
      <xs:annotation>
        <xs:documentation>Flag to determine if the serial port is an infrared port.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="true" />
          <xs:enumeration value="false" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="parity" default="N">
      <xs:annotation>
        <xs:documentation>Parity (error-checking).</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="N" />
          <xs:enumeration value="O" />
          <xs:enumeration value="E" />
          <xs:enumeration value="M" />
          <xs:enumeration value="S" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="port" default="1">
      <xs:annotation>
        <xs:documentation>COM port to use.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:minInclusive value="1" />
          <xs:maxInclusive value="32" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="rtscontrol" default="enable">
      <xs:annotation>
        <xs:documentation>RTS (ready-to-send) flow control.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="enable" />
          <xs:enumeration value="disable" />
          <xs:enumeration value="handshake" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="stopbits" default="1">
      <xs:annotation>
        <xs:documentation>Number of stop bits used to mark the end of a unit of transmission.</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:int">
          <xs:enumeration value="1" />
          <xs:enumeration value="2" />
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.